<script setup>
import { RouterView } from 'vue-router'
</script>

<template>
  <RouterView />
</template>

<style>
/* 移除默认样式，确保路由视图可以全屏显示 */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

#app {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* 全局可访问性样式 */
:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* 隐藏元素但保持屏幕阅读器能够访问 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 提高文本对比度 */
.text-white {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 改进按钮焦点状态 */
button:focus,
a:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* 触摸设备上改进按钮点击区域 */
@media (hover: none) {
  button,
  a {
    padding: 0.75rem 1rem;
    min-height: 44px;
    min-width: 44px;
  }
}
</style>
